import unittest
from comment import log_set
from BeautifulReport import BeautifulReport
from comment import send_email
if __name__ == '__main__':
    log_set()
    su=unittest.defaultTestLoader.discover(start_dir='', pattern='test*.py')
    ru=BeautifulReport(su)
    ru.report(description="测试报告", filename="baogao.html", report_dir='')

    send_email(['baogao.html','log.txt'])